package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IDocumentationDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.Documentation;
import com.ricchieri.service.interf.IDocumentationService;

@Transactional(readOnly = true)
public class DocumentationService implements IDocumentationService, Serializable {
	private static final long serialVersionUID = 5572494810685457902L;
	IDocumentationDao documentationDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<Documentation> getAllDocumentation() {
		BasicFilter filter = new BasicFilter();
		return documentationDao.getAllDocumentation(filter);
	}

	public IDocumentationDao getDocumentationDao() {
		return documentationDao;
	}

	public void setDocumentationDao(IDocumentationDao documentationDao) {
		this.documentationDao = documentationDao;
	}
}
